/*
 * riverside-anywhere - a useful tool for riverside of UESTC
 * Copyright (C) 2011-2012, riverside-anywhere developers and contributors
 * Copyright (C) 2011-2012, Cohesion Network Security Studio
 *
 * riverside-anywhere is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * riverside-anywhere is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with riverside-anywhere; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

var str = document.head.innerText.match(/verifyhash = '.*';/g)[0];
var start = str.indexOf("'");
var end = str.lastIndexOf("'");
var verifyHash = str.slice(start + 1,end);

var str = document.head.innerText.match(/winduid = '.*';/g)[0];
var start = str.indexOf("'");
var end = str.lastIndexOf("'");
var winduid = str.slice(start + 1,end);

chrome.extension.sendRequest(
	{
		verifyHash: verifyHash,
		winduid: winduid
	},
	function(response) {}
);
